<template>
  <div :class="['icon-status-wrap', type]">
    <i class="icon iconfont icon-wenjian"></i>
    <slot>你好胖</slot>
  </div>
</template>

<script setup>
  defineProps({
    type: { type: String, default: '' }
  })
</script>

<style lang="scss" scoped>
.icon-status-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
    min-width: 52px;
  padding: 0 6px;
  height: 20px;

  color: #424242;
  border-radius: 4px;
  font-size: 12px;
  box-sizing: border-box;

  .icon {
    font-size: 10px;
    margin-right: 4px;
  }

  &.complete {
    color: #da904f;
    background: linear-gradient(270deg,rgba(255,216,194,0.00), #ffd9c3);
  }

  &.not-complete {
    color: #92afce;
    background: linear-gradient(270deg,rgba(197,207,220,0.00), #dbe8f8);
  }
}
</style>